FROM dockerliweipei/xdebug:xdebug7.0
RUN ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load
#vhost
RUN mkdir -p  /usr/local/etc/php
ENV GIT_ROOT  /var/www/html
ENV APACHE_DOCUMENT_ROOT=${GIT_ROOT}/php
WORKDIR /etc/apache2/sites-enabled/
RUN sed -i "s#DocumentRoot /var/www/html/public#DocumentRoot ${APACHE_DOCUMENT_ROOT}#" 000-default.conf


$git
WORKDIR ${GIT_ROOT}
ENV GIT=https://gitee.com/liweipei/thikcmf.git
RUN rm -rf .git
RUN git init
RUN git remote add origin ${GIT}
RUN git fetch --all&&git reset --hard origin/master
RUN rm -rf .git
RUN git init
RUN git remote add origin ${GIT}


#RUN chmod -R 777 ${APACHE_DOCUMENT_ROOT}/Runtime
EXPOSE 80
